//
//  UIButton+MyBtn.m
//  YiMath
//
//  Created by 朴悦 on 2017/8/21.
//  Copyright © 2017年 com.zkzh.www. All rights reserved.
//

#import "UIButton+MyBtn.h"

static void * TouchBlockKey = &TouchBlockKey;

@implementation UIButton (MyBtn)

//- (void)addTouchHandler:(void(^)())handler{
//    objc_setAssociatedObject(self, TouchBlockKey, handler, OBJC_ASSOCIATION_COPY_NONATOMIC);
//    [self addTarget:self action:@selector(touchUpInSide:) forControlEvents:UIControlEventTouchUpInside];
//}
//
//-(void)touchUpInSide:(UIButton *)btn{
//    TouchBlock block = objc_getAssociatedObject(self, TouchBlockKey);
//    if (block) {
//        block();
//    }
//}
@end
